import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {// 注意，如果输入是多个测试用例，请通过while循环处理多个测试用例
            String a = in.next();
            String b = in.next();
            int[] pingpong = new int[26];
            for(int i = 0; i < a.length(); i++){
                pingpong[a.charAt(i)-'A']++;
            }
            boolean flag = false;
            for(int i = 0; i < b.length(); i++){
                pingpong[b.charAt(i)-'A']--;
                if(pingpong[b.charAt(i)-'A'] < 0){
                    flag = true;
                }
            }
            if (flag){
                System.out.println("No");
            }else {
                System.out.println("Yes");
            }
        }
    }

}
